package models

// https://gorm.io/zh_CN/docs/models.html

// AppPayment 门诊缴费记录
type AppPayment struct {
	PaymentID  int64   `gorm:"primaryKey;autoIncrement;not null"`
	UserID     int64   `gorm:"not null; index;"`
	BillID     string  `gorm:"type:varchar(256);not null;comment:账单ID"`
	BillInfo   string  `gorm:"type:varchar(256);not null;comment:账单详情"`
	BillAmount float64 `gorm:"null;comment:账单金额"`
	PayFlag    int64   `gorm:"not null;default:1;comment:支付判别"`
	PayInfo    string  `gorm:"not null;comment:支付详情"`

	BaseModel
}

func (AppPayment) TableName() string {
	return "app_payment"
}
